package com.itheima.stock.api;

import com.itheima.stock.dto.LoginDto;
import com.itheima.stock.response.ResponseResult;
import com.itheima.stock.vo.CaptchaVo;
import com.itheima.stock.vo.InnerMarketVO;
import com.itheima.stock.vo.LoginVo;
import com.itheima.stock.vo.MarketIndexVo;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author zby
 * @created 2024-06-22 22:44
 * @description 对外暴露用户接口
 */
@RequestMapping(path = "/api")
public interface UserControllerAPI {

    /**
     * 环境测试接口
     *
     * @return String
     */
    @GetMapping(path = "/user/test")
    String getName(@RequestParam("name") String name);

    @GetMapping(value = "/captcha")
    ResponseResult<CaptchaVo> getCaptcha();

    @PostMapping(value = "/login")
    ResponseResult<LoginVo> login(@RequestBody LoginDto loginDto);




}
